package com.ehome.poct.core.api.dto.patient;

import com.ehome.core.entity.DTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 新增患者Command
 *
 * @author muqiu
 * @since 2022/03/03 16:30
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("新增患者Command")
@Accessors(chain = true)
public class AddPatientDTO extends DTO {
    @NotNull(message = "终端不能为空")
    @ApiModelProperty(value = "终端主键ID", required = true)
    private Long clinicId;
    @NotNull(message = "用户名字不能为空")
    @ApiModelProperty(value = "用户名字", required = true)
    private String userName;
    @ApiModelProperty(value = "用户手机号", required = true)
    private String mobilePhone;
    @ApiModelProperty(value = "用户年龄（年份）", required = true)
    private Integer userAge;
    @ApiModelProperty(value = "用户年龄（月份）", required = true)
    private Integer userMonth;
    @NotNull(message = "性别不能为空")
    @ApiModelProperty(value = "性别",notes = "1：男，2：女", required = true)
    private Integer userSex;
}